import request from '@/utils/request';

// 分页查询操作概况列表
export function getUsersOperationsOverview(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/user/getUsersOperationsOverview',
		method: 'post',
		data: data,
	});
}

// 导出操作概况列表Excel文件
export function exportUsersOperationsOverview(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/user/downloadUsersOperationsOverview',
		method: 'post',
		data: data,
		responseType: 'blob',
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 分页查询操作概况列表
export function getUserOperationsTrajectory(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/user/getUserOperationsTrajectory',
		method: 'post',
		data: data,
	});
}

// 分页查询用户操作统计列表
export function getUsersOperationsStatistics(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/user/getUserOperationsStatistics',
		method: 'post',
		data: data,
	});
}

// 导出用户操作统计列表Excel文件
export function exportUsersOperationsStatistics(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/user/downloadUserOperationsStatistics',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}

// 分页查询 操作详情列表
export function getUsersOperationsDetail(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/user/getUserBusinessOperationsDetail',
		method: 'post',
		data: data,
	});
}

// 导出操作详情列表Excel文件
export function exportUsersOperationsDetail(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/user/downloadUserBusinessOperationsDetail',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}
